public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        System.out.println("长度"+mySingleList.size());
        System.out.println(mySingleList.contains(2));
        mySingleList.addLast(7);
        mySingleList.addLast(77);
        mySingleList.addLast(8);
        mySingleList.addIndex(2,222);
        mySingleList.remove(77);
        mySingleList.remove(8);
        mySingleList.display();
    }
}
